package com.ysd.entity;

public class Newsdetails { // 实体类,私有属性 + getset方法 + (带参/无参)构造方法 + toString
	private int newsId;
	private String newsTitle;
	private String nwesContent;
	private int newsCategoryId;

	private String newsCategoryName;//新闻分类的名称

	public int getNewsId() {
		return newsId;
	}

	public void setNewsId(int newsId) {
		this.newsId = newsId;
	}

	public String getNewsTitle() {
		return newsTitle;
	}

	public void setNewsTitle(String newsTitle) {
		this.newsTitle = newsTitle;
	}

	public String getNwesContent() {
		return nwesContent;
	}

	public void setNwesContent(String nwesContent) {
		this.nwesContent = nwesContent;
	}

	public int getNewsCategoryId() {
		return newsCategoryId;
	}

	public void setNewsCategoryId(int newsCategoryId) {
		this.newsCategoryId = newsCategoryId;
	}

	public String getNewsCategoryName() {
		return newsCategoryName;
	}

	public void setNewsCategoryName(String newsCategoryName) {
		this.newsCategoryName = newsCategoryName;
	}

	@Override
	public String toString() {
		return "Newsdetails [newsId=" + newsId + ", newsTitle=" + newsTitle + ", nwesContent=" + nwesContent
				+ ", newsCategoryId=" + newsCategoryId + ", newsCategoryName=" + newsCategoryName + "]";
	}

	public Newsdetails(int newsId, String newsTitle, String nwesContent, int newsCategoryId, String newsCategoryName) {
		super();
		this.newsId = newsId;
		this.newsTitle = newsTitle;
		this.nwesContent = nwesContent;
		this.newsCategoryId = newsCategoryId;
		this.newsCategoryName = newsCategoryName;
	}

	public Newsdetails() {
		super();
	}

	public Newsdetails(int newsId, String newsTitle, String nwesContent, int newsCategoryId) {
		super();
		this.newsId = newsId;
		this.newsTitle = newsTitle;
		this.nwesContent = nwesContent;
		this.newsCategoryId = newsCategoryId;
	}

	
	
	
	
	

}
